//
//  ScTestViewController.swift
//  weibo03
//
//  Created by mac on 16/9/20.
//  Copyright © 2016年 mac. All rights reserved.
//

import UIKit

class ScTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
    view.backgroundColor = UIColor.yellow

        addNavRightButton()
        
    }
    private func  addNavRightButton()
    {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
    }
    //点击事件
    func pushAction() -> Void {
        let testVc = ScTestViewController()
        navigationController?.pushViewController(testVc, animated: true)
    }


    
}
